package com.example.demo1.generator;

import org.junit.Test;

import java.io.File;
import java.io.IOException;

public class Generator {

    @Test
    public void new_file() throws IOException {
        File file=new File("f:aa.txt");
        if(file.createNewFile()){
            System.out.println("文件创建成功");
        }else {

        }

    }
}
